package com.kgc.est.feignService;

import com.kgc.est.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

@FeignClient(value = "est-provider")
public interface EvaluateService {

    @GetMapping("/evaluate/specList")
    Result specList(@RequestParam("modelId")Long modelId);


    @GetMapping("/evaluate/assess")
    Result assess(@RequestParam("modelId") Long modelId,
                  @RequestParam("optionIds") String optionIds,
                  @RequestParam("token") String token);


    @GetMapping("/evaluate/{id}/assessInfo")
    Result assessInfo(@PathVariable("id") Long id);

}
